package java10;

import java.util.Date;
import java.util.Scanner;

public class Phone {
	String brand;//品牌
	double money;//价格
	String colour;//颜色
	String nums;//号码
	String system;//系统
	boolean isIntelligence;//智能
	int date;//日期
	int i;
	int j=1;
	public void showBrand(){
		System.out.print(brand+" ");
	}
	public void showMoney(){
		System.out.print("￥"+money+" ");
	}
	public void showColour(){
		System.out.print(colour+" ");
	}
	public void showNums(){
		System.out.print(nums+" ");
	}
	public void showSystem(){
		System.out.print(system+" ");
	}
	public void showIsIntelligence(){
		if(isIntelligence){
			System.out.println("是智能机"+" ");
		}else{
			System.out.print("不是智能机"+" ");
		}
	}
	public void showDate(){
		Date date =new Date();
		System.out.print("购买时间是"+date.getMonth()+"月");
	}
	public void show(){
		showBrand();
		showMoney();
		showColour();
		showNums();
		showSystem();
		showIsIntelligence();
		showDate();
	}
	public void showFunction(){
		Scanner input=new Scanner(System.in);
		String[] function= new String[]{"开机","打电话","发短信","上网","听音乐","看视频","聊QQ","打游戏","看小说","照相","提醒","关机"};
		System.out.println("正在"+function[i]+".....");
		while(j==1){
			System.out.println("是否继续(y/n)");
			if(!input.next().equals("y")){
				j=0;
				break;
			}
			System.out.println("请选择功能1~11");
			System.out.println("正在"+function[input.nextInt()]+".....");
		}
		System.out.println("再见");
	}
}


